<template>

   
     <el-container>
       <el-header>
          <span>
           <img id="imghead"  alt="">
         </span>
          <span><h2>会议系统</h2></span>
          <span class="btn"> <el-button type="info" size="default" @click="logout">退出登录</el-button></span>
          
       </el-header>
       <el-container>
         <el-aside width="200px">
           <div class="togglebtn" >= =！</div>
         <el-menu :router="true" default-active=""
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b">
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-loading"></i>
          <span>会议功能1</span>
        </template>
          <el-menu-item index="/list">查看会议</el-menu-item>
          <el-menu-item index="/mylist">我的会议</el-menu-item> 
          <el-menu-item index="/reserve">预定会议</el-menu-item>
      </el-submenu>
       <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-loading"></i>
          <span>个人信息查看与修改</span>
        </template>
          <el-menu-item index="1">我的信息1</el-menu-item>
          <el-menu-item index="2">我的信息2</el-menu-item> 
          <el-menu-item index="3">我的信息3</el-menu-item>
      </el-submenu>
      
     </el-menu>
        </el-aside>
         <el-main>
           <router-view></router-view>
         </el-main>
       </el-container>
     </el-container>

  
</template>

<script>
export default {
  name: "index",
  methods: {
    /*
    * @author: Zhang Lin
    * @date: 2022-04-12
    * @description: 跳转至会议室预定子模块
    * */
    toMeetingAppointment: function () {
      this.$router.push('/meeting_appointment');
    },
    //退出登录
     logout(){
     window.sessionStorage.clear();
     this.$router.push('/login');
     this.$message("已退出登陆")
     this.$router.push('/')
     },
  }
}
</script>

<style scoped>
  
  .el-header{
    background-color: #B3C0D1;
    color: #333;
    display: flex;
    justify-content: space-between;
    padding-left: 0px;
    padding-right:5px;
    /* text-align: center; */
    /* line-height: 60px; */
  }
  .btn{
      margin-top: 9px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    /* text-align: center; */
    /* line-height: 200px; */
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    /* text-align: center; */
    /* line-height: 160px; */
  }
  .el-container{
      height: 100%;
  }
  .togglebtn{
    background-color: #4a5064;
    font-size: 10px;
    line-height: 24px;
    color: #fff;
    text-align: center;
    letter-spacing: 0.2em;
    cursor: pointer; 
  }
</style>
